package cn.edu.lingnan.service;

import cn.edu.lingnan.pojo.Project;
import cn.edu.lingnan.pojo.ProjectAdult;

import java.util.List;

public interface ProjectService {
    List<Project> queryAllProjects(Integer page, Integer pageSize);
    List<Project> queryMyProjects(String sname);
    List<Project> queryNoProjects(String sname);
    Project queryProjectById( Integer projectId);
    Integer StudentInsertProject(String sname, Integer projectId, Integer userId);
    Integer AdminInsertProject(Project project);
    Integer updateProject(Project project);
    Integer deleteProject(Integer[] projectIds);
    Integer AgreeProject(Integer projectId,Integer status);
    Integer RejectedProject(Integer projectId,Integer status,String reason);
    List<Project> QueryRejectedProject(String sname);
    Integer countProject();
    List<Project> queryProjectLikeName(String sname);
    Integer deleteInsertProject(Integer projectId);
    List<ProjectAdult> studentqueryaduitProject(Integer userId);
    List<Project> querymyEnterProject(String sname);
    List<ProjectAdult> queryaduitProject();
    Integer AgreeEnterProject(Integer projectId, String sname);
    Integer StudnetCreateProject(Project project);
    List<Project> StudentQueryCreateAdultProject(String sname);
    Integer StudentDeleteProjectCreateAdultProject(Integer projectId, String sname);
    List<Project> QueryStudnetCreateProject();

}
